package com.ti.winona.ui.fragment;

import com.taplinker.client.R;
import com.ti.winona.util.FragmentOperateUtil;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class IMQueueFragment extends Fragment {
	
	public static final String TAG = "IMQueueFragment";
	
	private View mIMQueueView;
	
	private ImageView mImgImqueueBack;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		return mIMQueueView = inflater.inflate(R.layout.fragment_imqueue, container, false);
	}

	@Override
	public void onViewCreated(View view, Bundle savedInstanceState) {
		super.onViewCreated(view, savedInstanceState);
		
		findView();
		initListener();
	}
	
	private void findView() {
		mImgImqueueBack = (ImageView) mIMQueueView.findViewById(R.id.img_imqueue_back);
	}
	
	private void initListener() {
		// 返回
		mImgImqueueBack.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				FragmentOperateUtil.popFragmentBackStack(getActivity().getSupportFragmentManager());
			}
		});
	}

}
